<html>
    <head>
        <meta name="layout" content="mobile">
        <title>Create User</title>
    </head>
    <body>
		<div data-role="header" data-position="fixed">
			<h1>Create User</h1>
			<div data-role="navbar">
				<ul>
					<li><a data-icon="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				</ul>
			</div>
		</div>
		<div data-role="content">
			<g:if test="${flash.message}">
			<div class="message">${flash.message}</div>
			</g:if>
			
			<g:form action="save">
				<dl>
					<dt>Login Name</dt>
					<dd><g:textField type="text" id="username" name="username" required="" value="${fieldValue(bean: user, field: 'username')}"/></dd>	
					
					<dt>Full Name</dt>
					<dd><g:textField type="text" id="userRealName" required="" name="userRealName"value="${fieldValue(bean: user, field: 'userRealName')}"/></dd>	
					
					<dt>Password</dt>
					<dd><g:passwordField type="password" id="passwd" required="" name="passwd" value="${fieldValue(bean: user, field: 'passwd')}"/></dd>
					
					<dt>Confirm Password</dt>
					<dd><g:passwordField type="password" id="passwdRepeat" required="" name="passwdRepeat" value="${fieldValue(bean: user, field: 'passwdRepeat')}"/></dd>
					
					<dt>Email</dt>
					<dd><g:textField type="text" id="email" name="email" required="" value="${fieldValue(bean: user, field: 'email')}"/></dd>		
					
					<dt>Phone Number for Notifications</dt>
					<dd><g:textField type="text" id="contactPhoneNumber" name="contactPhoneNumber" value="${fieldValue(bean: user, field: 'contactPhoneNumber')}"/></dd>	
					
					<dt>Email for Notifications</dt>
					<dd><g:textField type="text" id="contactEmail" name="contactEmail" value="${fieldValue(bean: user, field: 'contactEmail')}"/></dd>		
				</dl>
				<g:submitButton class="save" name="user" value="Create" />
			</g:form>
		</div>
		<div data-role="footer">
		</div>
    </body>
</html>
